import {createRouter, createWebHistory} from "vue-router";
//静态路由
const constRoutes = [

    {
        path: '/',
        redirect: '/login'
    },
    {
        path: '/login',
        component: () => import('@/views/login')
    },
    {
        path:'/404',
        component:()=>import('@/views/CommonViews/404')
    },
]
const routerHistory = createWebHistory()
const router = createRouter({
    history: routerHistory,
    routes: constRoutes
})

export default router
